import type { Meta } from '@renderer/router/types'

import index from '@renderer/views/index/index.vue'
import about from '@renderer/views/about/about.vue'

const tabbar = [
  {
    path: '/',
    component: index,
    name: 'Index',
    meta: {
      title: '配置', // 菜单标题
      icon: 'Setting' // 菜单文字左侧的图标,支持element-plus全部图标
    }
  },
  {
    path: '/about',
    component: about,
    name: 'About',
    meta: {
      title: '关于',
      icon: 'Warning'
    }
  }
].map((item) => {
  ;(item.meta as Meta).hidden = false
  return item
})

export default tabbar
